﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Himp.ShareData
{
    public class DeptInfoUpdateDto
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 上级科室
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 科室名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string DeptName { get; set; }

        /// <summary>
        /// 科别
        /// 参照科室代码
        /// </summary>
        public string? CatyCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string? CatyName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? OrganId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int SrtNo { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? Begntime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? Endtime { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [StringLength(500)]
        public string? Itro { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Memo { get; set; }

        /// <summary>
        /// 工作性质
        /// </summary>
        public List<DeptAssocAttrCreateDto> DeptAssocAttrs { get; set; }
    }
}
